package club.kingyin.easycache.proxy.adapter;

import club.kingyin.easycache.exception.SerializeException;
import club.kingyin.easycache.key.EasyCacheKey;
import club.kingyin.easycache.key.Parser;
import club.kingyin.easycache.method.CacheMethod;

public interface CacheMethodKeyAdapter extends Parser<CacheMethod, EasyCacheKey> {

    @Override
    default CacheMethod coalescence() {
        throw new SerializeException("无法逆向解析 EasyCacheKey -> CacheMethod");
    }

}
